Skip to content

fix(errors): surface real bundle failure identity to the user (#1)#28

Merged
AquiGorka merged 3 commits into
mainfrom
fix/error-bubbling
Jul 6, 2026
Merged

fix(errors): surface real bundle failure identity to the user (#1)#28
AquiGorka merged 3 commits into
mainfrom
fix/error-bubbling

Conversation

@AquiGorka

Copy link
Copy Markdown
Contributor

Mid-flight error-bubbling fix (ClickUp 86c8t0zux, half 2). Part of the coordinated landing anchored by moonlight-sdk#39 / provider-platform#131.

Hole fixed

  • Feat: Added linter and prettier #1 (user end) the provider client reads the structured failureDetail/error body and throws a BundleFailedError carrying the real code+message; flow handlers thread that code through; a new code → copy mapper (popup/utils/error-copy.ts) renders mapped user copy on the deposit/send/withdraw confirmation pages instead of a generic string.

Verify

deno check clean, deno lint clean, deno task build-prod succeeds. Rendered in-browser via test.sh invite-gate (moonlight-pay/consoles load). No unit-test suite in this repo.

SDK: no new symbol used — SDK pin unchanged (CI green independent of the SDK publish).

Note: the src/popup/style.css formatting drift is unrelated to this PR and is addressed separately by #27.

AquiGorka added 3 commits July 1, 2026 18:42
The provider client reads the structured failureDetail/error body and
throws a BundleFailedError carrying the real code+message; the flow
handlers thread that code through, and a new code->copy mapper renders
mapped user copy on the confirmation pages instead of a generic string
(#1).
@AquiGorka AquiGorka force-pushed the fix/error-bubbling branch from 95ddf86 to 9a3b8b7 Compare July 2, 2026 19:55
@AquiGorka AquiGorka requested a review from pselle July 2, 2026 20:11
@AquiGorka AquiGorka merged commit 9ff877f into main Jul 6, 2026
2 checks passed
@AquiGorka AquiGorka deleted the fix/error-bubbling branch July 6, 2026 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant